﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SdmxMl.Panels
{
    public partial class DlgSaveUnlockBackup : Form
    {
        public DlgSaveUnlockBackup(bool automaticBackup, bool backupAvailable)
        {
            InitializeComponent();
            buttonSaveWithBackup.Enabled = backupAvailable;
            buttonSave.Enabled = automaticBackup == false;
        }

        private void buttonSave_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Yes;
            this.Close();
        }

        private void buttonSaveWithBackup_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            this.Close();

        }

        private void buttonUndoCheckout_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.No;
            this.Close();

        }
    }
}
